<?php

return [

    // ----------------------- 菜单配置 ----------------------- //
    'config' => [
        // 菜单配置
        'menu' => [
            'location' => 'addons', // default:系统顶部菜单;addons:应用中心菜单
            'icon' => 'fa fa-puzzle-piece',
        ],
        // 子模块配置
        'modules' => [
        ],
    ],

    // ----------------------- 快捷入口 ----------------------- //

    'cover' => [

    ],

    // ----------------------- 菜单配置 ----------------------- //

    'menu' => [
        [
            'title' => '文章列表',
            'route' => 'news/index',
            'icon' => 'fa fa-user',
            'params' => [

            ],
            'child' => [

            ],
        ],
        [
            'title' => '文章分类',
            'route' => 'cate/index',
            'icon' => 'fa fa-puzzle-piece',
            'params' => [

            ],
            'child' => [

            ],
        ],
        [
            'title' => '幻灯片',
            'route' => 'adv/index',
            'icon' => 'fa fa-puzzle-piece',
            'params' => [

            ],
            'child' => [

            ],
        ],

    ],

    // ----------------------- 权限配置 ----------------------- //

    'authItem' => [
        [
            'title' => '文章管理',
            'name' => 'news',
            'child' => [
                [
                    'title' => '文章列表',
                    'name' => 'news/index',
                ],
                [
                    'title' => '创建文章',
                    'name' => 'news/create',
                ],
                [
                    'title' => '编辑文章',
                    'name' => 'news/edit',
                ],
                [
                    'title' => '删除文章',
                    'name' => 'news/delete',
                ],
                [
                    'title' => '查看文章',
                    'name' => 'news/view',
                ],
                [
                    'title' => '文章状态',
                    'name' => 'news/ajax-update',
                ],

            ]
        ],
        [
            'title' => '分类管理',
            'name' => 'cate',
            'child' => [
                [
                    'title' => '分类列表',
                    'name' => 'cate/index',
                ],
                [
                    'title' => '创建分类',
                    'name' => 'cate/ajax-edit',
                ],
                [
                    'title' => '删除分类',
                    'name' => 'cate/delete',
                ],
                [
                    'title' => '分类状态',
                    'name' => 'cate/ajax-update',
                ],
            ]
        ],
        [
            'title' => '幻灯片管理',
            'name' => 'adv',
            'child' => [
                [
                    'title' => '幻灯片列表',
                    'name' => 'adv/index',
                ],
                [
                    'title' => '创建幻灯片',
                    'name' => 'adv/create',
                ],
                [
                    'title' => '编辑幻灯片',
                    'name' => 'adv/edit',
                ],
                [
                    'title' => '删除幻灯片',
                    'name' => 'adv/delete',
                ],
                [
                    'title' => '幻灯片状态',
                    'name' => 'adv/ajax-update',
                ],

            ]
        ],
    ],
];